<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>05 指令</title>
  <style>
    [v-cloak] {
      display: none;
    }
  </style>
</head>
<body>
  <div id="app">
   <!-- 
     v-text
     v-html
     v-bind
     v-show v-if v-else-if v-else
     v-for
     v-on
     v-slot
     v-model
     v-pre
     v-once
     v-cloak
    -->
    <div>
      {{ msg }}
    </div>
    <div v-pre>
      {{ msg }}
    </div>
    <input type="text" v-model="msg">
    <div v-once>
      {{ msg }}
    </div>
    <hr />
    <div v-cloak>
      {{ msg }}
    </div>
  </div>
</body>
<script src="lib/vue.js"></script>
<script>
  new Vue({
    el: '#app',
    data: {
      msg: 'hello vue'
    }
  })
</script>
</html>
